#include "StdAfx.h"
#include "Scene.h"
#include "InputLoader.h"

CScene::CScene(void)
: m_bIsUpdated(false)
{
}


CScene::~CScene(void)
{
}

bool CScene::Init(const string& strFileName)
{
	string fileName = (strFileName == "") ? CConstants::GetInstance().GetValue("INPUT_FILE") : strFileName;
	bool bInput2D = CConstants::GetInstance().IsTrue("INPUT_2D");
	m_bIsUpdated = InputLoader::LoadPrimitives(fileName, m_vPrimitives, bInput2D);
	return m_bIsUpdated;
}